<?php get_header(); ?>
<div id="content">

<?php if (have_posts()) : ?>
		
	<?php while (have_posts()) : the_post(); ?>
			
			<div class="post" id="post-<?php the_ID(); ?>">
			<div class="post_meta">
			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
			<small>By <?php the_author_posts_link() ?> Posted on <?php the_time('F jS, Y') ?> In <?php the_category(', ') ?></small>
				<ul class="postmetadata">
				<li class="pm_comments"><?php comments_popup_link('Add a comment', '1 Comment', '% Comments '); ?></li>
				<li class="pm_tags"><?php the_tags('', ', ', '<br />'); ?></li>
				<li class="pm_edit"><?php edit_post_link('<b>Edit</b>', '', ''); ?></li>
				</ul>
			</div>	
			<div class="entry">
				<?php the_content(); ?>
			</div>
		</div>

	<?php comments_template(); ?>
	<?php endwhile; ?>

  <p align="center"><?php next_posts_link('&laquo; Previous Posts') ?> &nbsp; <?php previous_posts_link('Next Posts &raquo;') ?></p>

	<?php else : ?>
		<h2 align="center">Not Found</h2>
		<p align="center">Sorry, but you are looking for something that isn't here.</p>
	<?php endif; ?>

</div>
<?php get_sidebar();?>
<?php get_footer(); ?>
